package com.gaoyubo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//启动类
@SpringBootApplication
@EnableEurekaServer
/*@EnableDiscoveryClient
@RestController*/
public class ServerMain {
    //main方法
    public static void main(String[] args) {
        SpringApplication.run(ServerMain.class);
    }
    /*@RequestMapping("/health")
    public String testHealth(){
        return "ok";
    }*/
}
